import React, {Component} from 'react';
import {Icon, NavBar} from "antd-mobile";

const desc2016 = require('../../assets/img/info/audit/2016desc@2x.jpg')
const desc2017 = require('../../assets/img/info/audit/2017desc@2x.jpg')
const hedesc = require('../../assets/img/info/audit/hedesc.jpg')
const shendesc = require('../../assets/img/info/audit/shendesc.jpg')

class desc extends React.Component {

    render() {
        const {match: params} = this.props
        let img = ''
        if (Number(params.params.id) === 2016) {
            img = <img src={desc2016} width={'100%'} alt=""/>
        } else if (Number(params.params.id) === 2017) {
            img = <img src={desc2017} width={'100%'} alt=""/>
        }else if (params.params.id === 'he') {
            img = <img src={hedesc} width={'100%'} alt=""/>
        }else if (params.params.id === 'shen') {
            img = <img src={shendesc} width={'100%'} alt=""/>
        }
        const goBack = () => {
            this.props.history.goBack()
        }
        return <div>
            <NavBar mode="light"
                    onLeftClick={() => goBack()}
                    icon={<Icon type="left"/>}
                    className='title'>审核报告</NavBar>
            {img}
        </div>


    }
}

export default desc
